projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24a6ed4
)
An error occurs if the first detach was successful and the 2nd one is
author
Ewan Mellor
<ewan@xensource.com>
Sat, 16 Dec 2006 12:52:18 +0000
(12:52 +0000)
committer
Ewan Mellor
<ewan@xensource.com>
Sat, 16 Dec 2006 12:52:18 +0000
(12:52 +0000)
not (of course). Return if the 1st detach is successful, try the 2nd one
if it was not successful. Throw an error if the 2nd one fails.
This should also fix problems I am currently seeing in the xm-test
suite.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
tools/python/xen/xm/main.py
patch
|
blob
|
history
diff --git
a/tools/python/xen/xm/main.py
b/tools/python/xen/xm/main.py
index a503835cf5c6ede5102a036ff78a747fc4135571..42e6f74899aa2624b948306313e88fee205e282d 100644
(file)
--- a/
tools/python/xen/xm/main.py
+++ b/
tools/python/xen/xm/main.py
@@
-1556,7
+1556,11
@@
def detach(args, command, deviceClass):
def xm_block_detach(args):
- detach(args, 'block-detach', 'vbd')
+ try:
+ detach(args, 'block-detach', 'vbd')
+ return
+ except:
+ pass
detach(args, 'block-detach', 'tap')